from pymongo import MongoClient

client = MongoClient('localhost',27017)
db = client.Unicom

def make_stopwords_dic():
    collection = db.stopwords1112
    stopwords_dic = []
    for i in collection.find():
        stopwords_dic.append(i['stopword'])
    return stopwords_dic

def make_kefu_dic():
    collection = db.s   ###
    kefu_dic = []
    for i in collection.find():
        kefu_dic.append(i[''])
    return kefu_dic

def make_Keyword_dic():
    collection = db.s   ###
    Keyword_dic = []
    for i in collection.find():
        Keyword_dic.append(i[''])
    return Keyword_dic